package com.wksc.framework.impexp.pattern;

import com.wksc.framework.impexp.bean.BaseFormatParams;

/**
 * <p> Title(文件名): DecipherAndShowPattern.java </p>
 * <p> Description(描述): 此类用于处理即有加解密又需判断是否有权限判断的情况</p>
 * <p> Copyright(版权): Copyright (c) 2011 </p>
 * <p> Company(公司): 成都四方信息技术有限公司 </p>
 * <p> CreateTime(生成日期)：2011-12-1下午02:49:20 </p>
 * @author wanglei
 * @version impExp
 */
public class DecipherAndShowPattern extends ShowContentPattern implements INeedRowContent{
	private static final long serialVersionUID = -1319291991673517360L;

	@Override
	public String format(BaseFormatParams params) {
		String resultMsg = super.format(params);
		if(params.isShowContentRights()){
			 params.setCellContent(super.format(params));
			 resultMsg = new DecipherPattern().format(params);
		}
		return resultMsg;
	}
}
